//
//  UserDefaults+Extension.swift
//  jiahui
//
//  Created by 3tee on 2024/12/3.
//

import Foundation
class UserDefaultsPlugin{
   class func setValue(_ va: Any?,key: String){
        UserDefaults.standard.setValue(va, forKey: key)
        UserDefaults.standard.synchronize()
    }
    
    class func obj(forKey key: String) -> Any?{
       return  UserDefaults.standard.object(forKey: key)
    }
    
    class func bool(forKey key: String) -> Bool{
        return  UserDefaults.standard.bool(forKey: key)
    }
}
